package com.reshare.mapper;


import com.reshare.base.BaseMapper;
import com.reshare.bean.Commodity;
import com.reshare.model.CommodityModel;
import com.reshare.query.CommodityQuery;

import java.util.List;

public interface CommodityMapper extends BaseMapper<Commodity,Integer> {

    List<Commodity>  selectAllCommodityByParams(CommodityQuery commodityQuery);

    int insertCommodity(Commodity commodity);


    int updateCoverImgById(Commodity commodity);

    Commodity findById(Integer id);

    int updateCommodityState(Integer commodityId);

}